<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var shuzi = prompt("输入数字1~7");
        switch (shuzi) {
            case "1":
                console.log("星期一");
                break;
            case "2":
                console.log("星期二");
                break;
            case "3":
                console.log("星期三");
                break;
            case "4":
                console.log("星期四");
                break;
            case "5":
                console.log("星期五");
                break;
            case "6":
                console.log("星期六");
                break;
            case "7":
                console.log("星期日");
                break;
    </script>
</head>

<body>

</body>